﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OtherEvent.ascx.cs"
    Inherits="Framework.Portal.Layouts.Client.Modules.Right.OtherEvent" %>
<div class="box toptruyen">
    <span class="tit_box">
        <h4>
            <%= MENUNAME %></h4>
    </span>
<asp:Repeater ID="rptContent" runat="server" OnItemDataBound="rptContent_ItemDataBound">
    <HeaderTemplate>
        <ul class="list_pro">
    </HeaderTemplate>
    <FooterTemplate>
        </ul>
    </FooterTemplate>
    <ItemTemplate>    
        <li><span class="ava3">
            <asp:Image ID="imgAvatar" BorderWidth="1" runat="server" ImageUrl="/Uploads/117/1/PreAvatar/ava3.jpg" /></span> 
            <asp:HyperLink ID="hplTitle" runat="server" CssClass="title_a"></asp:HyperLink>
            <br />
            <span id="boxOtherEvent_<%# Eval("ID") %>"></span> bài viết tham gia<br class="clear" />
        </li>
       </ItemTemplate>
       <AlternatingItemTemplate>
        <li><span class="ava3">
            <asp:Image ID="imgAvatar" BorderWidth="1" runat="server" ImageUrl="/Uploads/117/1/PreAvatar/ava3.jpg" /></span> 
            <asp:HyperLink ID="hplTitle" runat="server" CssClass="title_a"></asp:HyperLink>
            <br />
            <span id="boxOtherEvent_<%# Eval("ID") %>"></span> bài viết tham gia<br class="clear" />
        </li>
       </AlternatingItemTemplate>
       </asp:Repeater>
    <asp:HyperLink ID="hplViewMore" runat="server" Text="Xem thêm" CssClass="more"></asp:HyperLink>
    <br class="clear" />
</div>
<!--end:Box(Su kien)-->
<script type="text/javascript">
    var arrayEvent = <%= arrayEvent %>;
    $(document).ready(function () {        
         $.each(arrayEvent, function(index, value) { 
            $.ajax({
                type: "POST",
                cache: false,
                url: "Resources.ashx?module=teenioevent&action=geteventcount",
                data: { "event": value},
                success: function (html) {
                    $("#boxOtherEvent_" + value).html(html);
                },
                timeout: 5000,
                complete: function () {    

                }
            });
        });        
    });
</script>